var BaseUserHelp = app.controller('BaseUserHelp', function($rootScope, $scope, $http,$state,$cordovaCamera,$cordovaFileTransfer,$cordovaProgress,BaseUserHelpData) {
	try{
		$rootScope.showf=false;
		$rootScope.title = '帮助中心';
		
		$scope.info={};
		
		var url=SITE_URL+"index.php?app=userapp&callback=JSON_CALLBACK&act=helpcenter";
		$http.jsonp(url).success(function(data) {
			if(data.done){
				$scope.info=data.retval;
			}
		});

	}
	catch (e) {
		showcatch(e);
	}
});
BaseUserHelp.BaseUserHelpData=function($q, $http,$stateParams,$rootScope){
	try {
		var data = [];
		var def = $q.defer();
		if(window.localStorage.u==undefined||window.localStorage.u==null||window.localStorage.u==""){			
			$rootScope.go("loginmain");
		}else{
			def.resolve(data);
		}
		
		return def.promise;
	} catch (e) {
		showcatch(e);
	}
}